// @ts-ignore
/* eslint-disable */
import request from "@/libs/request";
export async function addCollectionPost(
  body: API.CollectionAddRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseLong_>("/api/collection/add", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

export async function getCollectionPost(
  body: API.CollectionAddRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseLong_>("/api/collection/get/wishCollection", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

export async function getCollectionListPost(
  body: API.CollectionAddRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseLong_>("/api/collection/get/list/page/vo", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

export async function getSignListPost(
  body: API.CollectionAddRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseLong_>("/api/sign/question/list", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

export async function getAiByUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getAiByUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseUser_>("/api/chat", {
    method: "GET",
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
